package com.atguigu.spzx.product.service.impl;

import com.atguigu.spzx.model.entity.product.Brand;
import com.atguigu.spzx.product.mapper.BrandMapper;
import com.atguigu.spzx.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName: BrandServiceImpl
 * @Package: com.atguigu.spzx.product.service.impl
 * @Description
 * @Author 孤妤
 * @Date: 2023/12/18 16:55
 */
@Service
@Transactional
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper brandMapper;
    @Override
    @Transactional(readOnly = true)
    public List<Brand> findAll() {
        return brandMapper.selectAll();
    }
}
